// 加载公共样式
require('../../assets/css/public.less')

// 引入自己样式
require('./adv.less')

function $(selector) {
    return document.querySelector(selector)
}
function $a(selector) {
    return document.querySelectorAll(selector)
}

// 等dom加载完毕后操作dom
window.onload = () => {
    function count() {
        // 倒计时跳转
        let num = 5
        let timeId = setInterval(function () {
            num--
            if (num <= 0) {
                location.href = '#'
            } else {
                $('.changeNum').textContent = num
            }
        }, 1000)
    }
    count()
}

// 点击跳过，跳转页面
$('.jump').addEventListener('click', function () {
    location.href = '#'
})